Programming With QuickTime VR 2.1

Previous | Overview | Contents | Next

Node Header Atom Structure

A node header atom describes the type and ID of a node, as well as other information about the node. The structure of a node header atom is defined by the VRNodeHeaderAtom data type:

typedef struct VRNodeHeaderAtom {
    UInt16                              majorVersion;
    UInt16                              minorVersion;
    OSType                              nodeType;
    QTAtomID                            nodeID;
    QTAtomID                            nameAtomID;
    QTAtomID                            commentAtomID;
    UInt32                              reserved1;
    UInt32                              reserved2;
} VRNodeHeaderAtom, *VRNodeHeaderAtomPtr;
majorVersion
The major version number of the file format.
minorVersion
The minor version number of the file format.
nodeType
The node type. See "Node Types" for a description of the available node types. Currently, this field should contain either kQTVRPanoramaType or kQTVRObjectType .
nodeID
The node ID.
nameAtomID
The ID of the string atom that contains the name of the node. This atom should be a sibling of the node header atom. The value of this field is 0 if no name atom exists.
commentAtomID
The ID of the string atom that contains a comment for the node. This atom should be a sibling of the node header atom. The value of this field is 0 if no comment atom exists.
reserved1
Reserved. This field must be 0.
reserved2
Reserved. This field must be 0.

© 1997 Apple Computer, Inc.

Previous | Overview | Contents | Next